package com.example.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ClassesCircle {
    @TableId
    private Integer classesCircleId;
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long classId;
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long authorId;
    private String content;
    private Integer circleType;
    private String circleImg;
    private LocalDateTime createdAt;
    @TableField(exist = false) // 忽略映射关系
    private List<CircleLikes> circleLikes;
}
